
Page({
  data: {
    motto: 'Hello World',
    userInfo: {}
  },
  userInfoSelect: function () {
    wx.navigateTo({
      url: './UserInfo/UserInfo',
      success: function(res) {},
      fail: function(res) {},
      complete: function(res) {},
    })
  },
  changePsdSelect: function () {
wx.navigateTo({
  url: './ChangePsd/ChangePsd',
  success: function(res) {},
  fail: function(res) {},
  complete: function(res) {},
})
  },
  onLoad: function () {
    console.log('onLoad')
    var that = this
    //调用应用实例的方法获取全局数据
    wx.getUserInfo({
      success: res => {
        this.setData({
          userInfo: res.userInfo
        })
      }
    })
  }
})